home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / AMICUS / AMICUS20.ADF / BlitLab / structures.h < prev    next >
C/C++ Source or Header  |  1989-01-27  |  4KB  |  145 lines

  1. /*
  2.  *   The structures and include files used in BlitLab.
  3.  */
  4. #define BANNER "BlitLab 1.1, Copyright (C) 1987, Radical Eye Software"
  5. #include "exec/exec.h"
  6. #include "intuition/intuition.h"
  7. #include "functions.h"
  8. #include "graphics/display.h"
  9. #include "graphics/gfx.h"
  10. #include "graphics/gfxmacros.h"
  11. #include "graphics/gfxbase.h"
  12. #include "stdio.h"
  13. /*
  14.  *   This is the blitter register structure we use.
  15.  */
  16. struct blitregs {
  17.    short con0, con1, size, afwm, alwm ;
  18.    short pth[4] ;
  19.    short ptl[4] ;
  20.    short mod[4] ;
  21.    short dat[4] ;
  22. } ;
  23. /*
  24.  *   Here we number the gadgets.
  25.  */
  26. #define GDGPNTREG (0)
  27. #define GDGCLRSET (1)
  28. #define GDGGO (2)
  29. #define GDGSX (3)
  30. #define GDGSY (4)
  31. #define GDGEX (5)
  32. #define GDGEY (6)
  33. #define GDGLINE (7)
  34. #define GDGH (8)
  35. #define GDGV (9)
  36. #define GDGDESC (10)
  37. #define GDGFCI (11)
  38. #define GDGIFE (12)
  39. #define GDGEFE (13)
  40. #define GDGSETUP (14)
  41. #define GDGFUNC (15)
  42. #define GDGUSEA (16)
  43. #define GDGUSEB (17)
  44. #define GDGUSEC (18)
  45. #define GDGUSED (19)
  46. #define GDGAPT (20)
  47. #define GDGBPT (21)
  48. #define GDGCPT (22)
  49. #define GDGDPT (23)
  50. #define GDGAMOD (24)
  51. #define GDGBMOD (25)
  52. #define GDGCMOD (26)
  53. #define GDGDMOD (27)
  54. #define GDGADAT (28)
  55. #define GDGBDAT (29)
  56. #define GDGCDAT (30)
  57. #define GDGASH (31)
  58. #define GDGBSH (32)
  59. #define GDGAFWM (33)
  60. #define GDGALWM (34)
  61. #define GDGCALC (35)
  62. #define MAXGADG (36)
  63. /*
  64.  *   These defines set the size of the screen and various subareas of
  65.  *   the screen, including most gadget locations.
  66.  */
  67. #define HWINSTART (0)
  68. #define VWINSTART (5)
  69. #define HWINSIZE (640)
  70. #define VWINSIZE (195)
  71. #define HBITSTART (4)
  72. #define VBITSTART (11)
  73. #define HBITSIZE (96 * 6)
  74. #define VBITSIZE (32 * 3 + 1)
  75. #define HLMGSTART (HBITSIZE + HBITSTART + 2)
  76. #define HLMGSIZE (HWINSIZE - HLMGSTART - 4)
  77. #define VLMGSIZE (12)
  78. #define VLMGINT (4)
  79. #define VLMG1 (VBITSTART + VLMGINT)
  80. #define VLMG2 (VLMG1 + VLMGSIZE + VLMGINT)
  81. #define VLMG3 (VLMG2 + VLMGSIZE + VLMGINT)
  82. #define VLMG4 (VLMG3 + VLMGSIZE + VLMGINT)
  83. #define VLMG5 (VLMG4 + VLMGSIZE + VLMGINT)
  84. #define VGOSTART (VLMG5 + VLMGSIZE + VLMGINT)
  85. #define HGOSTART (HLMGSTART + 2)
  86. #define HGOSIZE (HLMGSIZE - 4)
  87. #define VGOSIZE (VRVSTART - VGOSTART - VLMGINT)
  88. #define VSTRSIZE (11)
  89. #define HSTRSIZE(a) (8 * (a) + 4)
  90. #define HMGSIZE (63)
  91. #define VMGSIZE (11)
  92. #define HMGINT (1)
  93. #define VMGINT (0)
  94. #define HMG1START (HBITSTART)
  95. #define HMG2START (HMG1START + HMGSIZE + HMGINT)
  96. #define HMG3START (HMG2START + HMGSIZE + HMGINT)
  97. #define HMG4START (HMG3START + HMGSIZE + HMGINT)
  98. #define HMG5START (HMG4START + HMGSIZE + HMGINT)
  99. #define HMG6START (HMG5START + HMGSIZE + HMGINT)
  100. #define HMG7START (HMG6START + HMGSIZE + HMGINT)
  101. #define HMG8START (HMG7START + HMGSIZE + HMGINT)
  102. #define HMG9START (HMG8START + HMGSIZE + HMGINT)
  103. #define VMG1START (VBITSTART + VBITSIZE)
  104. #define VMG2START (VMG1START + VMGSIZE + VMGINT)
  105. #define VRVSTART (VMG2START + VMGSIZE)
  106. #define VRVL1 (VRVSTART + 2)
  107. #define VRVL2 (VRVL1 + 9)
  108. #define VRVL3 (VRVL2 + 9)
  109. #define VRVL4 (VRVL3 + 9)
  110. #define VRVL5 (VRVL4 + 9)
  111. #define VRVL6 (VRVL5 + 9)
  112. #define VRVLL2 (VRVL1 + 10)
  113. #define VRVLL3 (VRVLL2 + 11)
  114. #define VRVLL4 (VRVLL3 + 11)
  115. #define VRVLL5 (VRVLL4 + 11)
  116. #define VRVLL6 (VRVLL5 + 11)
  117. #define VRG1 (VRVL1 + 8)
  118. #define VRVSIZE (VWINSIZE - VRVSTART)
  119. #define HRVSIZE (HWINSIZE - HBITSTART - 3)
  120. #define HRVSTART (HBITSTART)
  121. #define HRVC1 (HRVSTART + 6)
  122. #define HRVC2 (HRVC1 + 5 * 8)
  123. #define HRVC3 (HRVC2 + 5 * 8)
  124. #define HRVC4 (HRVC3 + 2 * 8)
  125. #define HRVC5 (HRVC4 + 5 * 8)
  126. #define HRVC6 (HRVC5 + 5 * 8)
  127. #define HRVC6B (HRVC6 + 5 * 8)
  128. #define HMVSTART (HRVC6B + 35)
  129. #define HRVC7 (HRVC6B + 5 * 8)
  130. #define HRVC8 (HRVC7 + 2 * 8)
  131. #define HRVC9 (HRVC8 + 3 * 8 + 4)
  132. #define HRVC10 (HRVC9 + 9 * 8)
  133. #define HRVC11 (HRVC10 + 7 * 8)
  134. #define HRVC12 (HRVC11 + 19 * 8)
  135. #define VTEXTOFF (2)
  136. #define HTEXTOFF (2)
  137. /*
  138.  *   Colors.
  139.  */
  140. #define BLUE (0)
  141. #define WHITE (1)
  142. #define BLACK (2)
  143. #define ORANGE (3)
  144.  
  145.